package com.etc.demo.vo;

import com.etc.common.model.BaseModel;
import com.etc.common.util.StringUtil;
import com.etc.demo.model.DemoModel;

/**    
* @Title: DemoVO.java  
* @Package com.etc.demo.vo  
* @Description: TODO 
* @author 黄宇    
* @date 2016年3月19日 下午11:18:55  
* @version V1.0    
*/
public class DemoVO extends BaseModel{
	
	private static final long serialVersionUID = -7594206042233686915L;

	private String id ;
	
	private String name;
	
	private String address;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}
	
	public DemoModel VO2Model() {
		DemoModel model = new DemoModel();
		if(!StringUtil.isEmpty(this.id)){
			model.setId(Integer.valueOf(this.id));
		}
		model.setName(this.name);
		model.setAddress(this.address);
		return model;
	}
	
}
